#ifndef LT_CONFIGURE
#define LT_CONFIGURE

#define DEBUG

#include <string>
#include <omp.h>

using namespace std;

#define fltp_port 7799

#define fltp_server_ip "139.199.166.124"

#define msg_onePieceSize 1024*4

#define method_send "lsend"
#define method_get "lget"

// mean how much datagram the buffer can store
#define sender_window_size 30
#define reciver_window_size 50

// the max_rtt they can torrerant.
#define CLIENT_MAX_RTT 0,5000000
#define SERVER_MAX_RTT 5,0

#define header_size 8
#define max_datagram_size header_size+msg_onePieceSize+2

#define max_filename 30

enum datagram_type
{
    type_clientAsk,
    type_severACKReadyAndAsk,
    type_clientACKReady,
    type_data,
    type_dataAck,
    type_clientFinish,
    type_type_serverAckFinAndClose,//combine server's ack client'finish and its finish 
    type_clientAckFin,
    type_empty
};

#endif